import React, { Component } from 'react';
import "./download.css";
import bg from './bg.jpg';
import logo from './logo.png';

class Download extends Component {

   componentDidMount(){
        let _b_url = this.props.history.location.pathname;
        window._hmt.push(['_trackPageview', _b_url]);
   }

    render() {

        let width = document.body.clientHeight;

        

        return (
            <div className="section fp-section active" style={{height: width}}>
                <div className="app">
                    <div className="app__header">
                        <img alt={"背景"} src={bg} />
                    </div>
                        <div className="app__logo">
                            <img src={logo} />
                            <h3>饼干题库</h3>
                        </div>
                        <div className="app__desc">
                        <p>海量真题，拥有历年真题</p>
                        <p>详解详细，每一题都有详细的解析</p>
                        <p>努力刷题，必过四六级</p>
                        </div>
                        <a className="app__download" href="https://bgcet-1251263301.cos.ap-shanghai.myqcloud.com/%E9%A5%BC%E5%B9%B2%E9%A2%98%E5%BA%930.0.1.apk">
                            下载饼干题库安卓版
                        </a>
                        <a className="app__download" onClick={()=>{
                            this.props.history.goBack();
                        }}>
                            返回
                        </a>
                </div>
            </div>
        );
    }
}

export default Download;